cmake_minimum_required(VERSION 2.6)

find_package (Yast  REQUIRED)
find_package (Libyui REQUIRED)
message(STATUS "LIBYUI: "${LIBYUI_LIBRARIES})
message(STATUS "YaSTfound: ${YAST_INCLUDE_DIR}")

## gcc flags

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Woverloaded-virtual -Wno-deprecated")
set (CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -g -Wall")
set (CMAKE_CXX_FLAGS_RELEASE   "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")

add_subdirectory (src_native)
add_subdirectory (src_native/test)
add_subdirectory (src_native/loader)